<?php
namespace app\api\validate;

use think\Validate;

class BankCardValidate extends Validate
{
    protected $rule = [
        'username' => 'require',
        'bank_name' => 'require',
        'bank_branch_name' => 'require',
        'number' => 'require',
    ];

    protected $message = [
        'username.require' => '姓名不能为空',
        'bank_name.require' => '银行卡名称不能为空',
        'bank_branch_name.require' => '支行名称不能为空',
        'number.require' => '卡号不能为空',
    ];

    protected $scene = [
        'bindCard' => ['username','bank_name','bank_branch_name','number']
    ];
}
